<%@ page language="java" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>安装向导</title>
<link rel="stylesheet" type="text/css" href="res/install.css" />
<script type="text/javascript" src="../common/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="res/setup.js"></script>
</head>
<body>
	<table align="center" class="bo">
		<tr>
			<td width="140"><div class="logo"></div>
			</td>
			<td width="610" align="center">
				<h1>新闻文稿系统安装向导（参数设置）</h1> 版权所有 &copy; 2009-2011保留所有权利 [V 1.2]</td>
		</tr>
		<tr>
			<td colspan="2">
				<table width="750" class="setting">
					<tr>
						<th width="150" align="right">数据库主机：</th>
						<td width="200"><input type="text" class="tinput" name="host" value="127.0.0.1" maxlength="15">
						</td>
						<td width="400">数据库的ip地址，如果是本机无需改动</td>
					</tr>
					<tr>
						<th align="right">数据库端口号：</th>
						<td><input type="text" class="tinput" name="port" value="3306" maxlength="5">
						</td>
						<td>数据库的端口号，一般无需改动</td>
					</tr>
					<tr>
						<th align="right">数据库名称：</th>
						<td><input type="text" class="tinput" name="dbname" value="news">
						</td>
						<td>数据库的ip地址，如果是本机无需改动</td>
					</tr>
					<tr>
						<th align="right">数据库用户：</th>
						<td><input type="text" class="tinput" name="username" value="root">
						</td>
						<td></td>
					</tr>
					<tr>
						<th align="right">数据库密码：</th>
						<td><input type="password" class="tinput" name="passwd">
						</td>
						<td>安装数据库时输入的密码</td>
					</tr>
					<tr>
						<th align="right">是否创建数据库：</th>
						<td><input type="radio" name="createDb" checked="checked" value="true">是 <input type="radio" name="createDb" value="false">否</td>
						<td>默认创建数据库</td>
					</tr>
					<tr>
						<th align="right">域名：</th>
						<td><input name="domain" type="text" class="tinput" value="<%=request.getServerName()%>" readonly="readonly" /></td>
						<td align="left">系统已经检测出您的域名，请勿改动</td>
					</tr>

					<tr>
						<th align="right">部署路径：</th>
						<td><input name="cxtPath" type="text" class="tinput" value="<%=request.getContextPath()%>" readonly="readonly" /></td>
						<td>系统已经检测出您的部署路径，请勿改动</td>
					</tr>
					<tr>
						<th align="right">服务端口号：</th>
						<td><input name="serverport" type="text" class="tinput" value="<%=request.getServerPort()%>" /></td>
						<td>系统已经检测出您的端口号，请勿改动</td>
					</tr>
					<tr>
						<td colspan="3"><hr></td>
					</tr>
					<tr>
						<th align="right">版权信息</th>
						<td><input name="copyright" type="text" class="tinput" value="2010 - 2011" /></td>
						<td>版权的使用年月</td>
					</tr>
					<tr>
						<th align="right">序列号：</th>
						<td><input name="sequence" type="text" class="tinput" value="demo" maxlength="20" /></td>
						<td>程序所需要的序列号</td>
					</tr>
					<tr>
						<td colspan="3"><hr></td>
					</tr>
					<tr id="mesgarea" style="display: none;">
						<th align="right" width="150">测试结果</th>
						<td colspan="2" id="consoleMessage"  width="600"></td>
					</tr>
					<tr>
						<td align="right"><button onclick="Setup.ping();">测试连接</button></td>
						<td colspan="2" align="right">
							<button id="successping" disabled="disabled" onclick="Setup.install()">确定</button>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>